package com.ruoyi.product.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 用户评论表对象 product_comment
 *
 * @author 林道敬
 * @date 2025-01-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("product_comment")
public class ProductComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String userName;

    /** 发布id */
    @Excel(name = "发布id")
    private Long publishId;

    /** 用户身份 */
    @Excel(name = "用户身份")
    private String userLevel;

    /** 发布内容 */
    @Excel(name = "发布内容")
    private String publishContent;

    /** 评论类型 */
    @Excel(name = "评论类型")
    private String commentType;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setPublishId(Long publishId)
    {
        this.publishId = publishId;
    }

    public Long getPublishId()
    {
        return publishId;
    }
    public void setUserLevel(String userLevel)
    {
        this.userLevel = userLevel;
    }

    public String getUserLevel()
    {
        return userLevel;
    }
    public void setPublishContent(String publishContent)
    {
        this.publishContent = publishContent;
    }

    public String getPublishContent()
    {
        return publishContent;
    }
    public void setCommentType(String commentType)
    {
        this.commentType = commentType;
    }

    public String getCommentType()
    {
        return commentType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("publishId", getPublishId())
            .append("userLevel", getUserLevel())
            .append("publishContent", getPublishContent())
            .append("commentType", getCommentType())
            .toString();
    }
}
